﻿namespace KinonekoSoftware.CodariaDB.Documents.DataParts.Modules.RVE
{
    public class RVE_Dashboard : RVE_Element, IMetadataSupport, IMainVisualRowElement
    {
        public int    Maximum  { get; set; }
        public int    Minimum  { get; set; }
        public int    Value    { get; set; }
        public string Color    { get; set; }
        public string Metadata { get; set; }

        public override RVE_Element Clone() => new RVE_Dashboard
        {
            Id          = ID.Get(),
            Description = Description,
            Title       = Title,
            Metadata    = Metadata,
            Value       = Value,
            Minimum     = Minimum,
            Maximum     = Maximum,
            Color       = Color,
        };

        IMainVisualRowElement IMainVisualRowElement.Clone() => new RVE_Dashboard
        {
            Id          = ID.Get(),
            Description = Description,
            Title       = Title,
            Metadata    = Metadata,
            Value       = Value,
            Minimum     = Minimum,
            Maximum     = Maximum,
            Color       = Color,
        };
    }
}